//
//  WmcMediaConfigAPI.swift
//  YPWatermarkCamera
//
//  Created by 周诗松 on 2022/6/13.
//

import Foundation

import RxSwift
import YPNetwork
import Alamofire

struct WmcMediaConfigAPI {
    /// 查询应用配置
    /// - Returns: Observable<WmcMediaConfigModel>
    static func fetchConfig() -> Observable<WmcMediaConfigModel> {
        return WmcMediaRequest.requestData(path: "/media/v1/app/getConfigs") { request in
            request.method = .post
        }.parseModelWithClass(WmcMediaConfigModel.self)
    }
}
